home *** CD-ROM | disk | FTP | other *** search
/ Star Festival... a Return to Japan / Star Festival... a Return to Japan.iso / pc / STARFESTIVAL / 17p5.dir / 00001.ls next >
Encoding:
Text File  |  1999-04-02  |  1.6 KB  |  61 lines

  1. on startMovie
  2.   global gKnobSprite, gSendMovie, gCursorReady, gKnobState
  3.   puppetSprite(48, 1)
  4.   gCursorReady = 1
  5.   gKnobSprite = 14
  6.   gSendMovie = "17p5"
  7.   gKnobState = 1
  8.   puppetSprite(gKnobSprite, 1)
  9.   setUpKnob()
  10.   set the mouseDownScript to EMPTY
  11.   set the mouseUpScript to EMPTY
  12. end
  13.  
  14. on idle
  15.   global gCursorReady
  16.   if gCursorReady = 1 then
  17.     cursor(200)
  18.     checkCursors()
  19.     set the locH of sprite 48 to the mouseH
  20.     set the locV of sprite 48 to the mouseV
  21.     updateStage()
  22.   end if
  23. end
  24.  
  25. on checkCursors
  26.   global gMagCursor
  27.   gMagCursor = "magCursor"
  28.   set the castNum of sprite 48 to the number of member "curs1"
  29.   repeat with i = 5 to 11
  30.     if the castNum of sprite i and rollOver(i) then
  31.       set the castNum of sprite 48 to the number of member gMagCursor
  32.     end if
  33.   end repeat
  34.   if the castNum of sprite 19 and rollOver(19) then
  35.     set the castNum of sprite 48 to the number of member "deMagCursor"
  36.   end if
  37.   if rollOver(47) then
  38.     set the castNum of sprite 48 to the number of member "hotCursor"
  39.   end if
  40.   repeat with i = 15 to 17
  41.     if rollOver(i) then
  42.       set the castNum of sprite 48 to the number of member "hotCursor"
  43.     end if
  44.   end repeat
  45.   repeat with i = 26 to 28
  46.     if rollOver(i) then
  47.       set the castNum of sprite 48 to the number of member "linkCurs"
  48.     end if
  49.   end repeat
  50.   repeat with i = 30 to 32
  51.     if rollOver(i) then
  52.       set the castNum of sprite 48 to the number of member "hotCursor"
  53.     end if
  54.   end repeat
  55.   repeat with i = 40 to 42
  56.     if rollOver(i) then
  57.       set the castNum of sprite 48 to the number of member "hotCursor"
  58.     end if
  59.   end repeat
  60. end
  61.